package org.example.myerp.controller;


import org.example.myerp.pojo.*;import org.example.myerp.service.ProInfoAssetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * ��Ʒ��������Ϣ�����Ʋ㡿
 * @author DELL
 *
 */
//@CrossOrigin(methods = { RequestMethod.POST, RequestMethod.GET }, allowCredentials = "true", allowedHeaders = "*")

@RestController
@RequestMapping("/design/proInfoAsset")
public class ProInfoAssetController {
	@Autowired
    ProInfoAssetService proInfoAssetService;

	/**
	 * ���ݲ�Ʒ��Ų�ѯ��Ʒ����Ϣ
	 * @param pId
	 * @return
	 */
	@RequestMapping("/getSelectProInfoAssetByPId")
	@ResponseBody
	public ProInfoAsset getSelectProInfoAssetByPId(Integer pId) {
		ProInfoAsset proInfoAsset = proInfoAssetService.getSelectProInfoAssetByPId(pId);
		return proInfoAsset;
	}
}
